From: Georges Basile Stavracas Neto Date: Fri, 1 Jan 2021 16:07:06 +0000 (-0300) Subject: workspace: Split preparation steps from zoomFromOverview X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~616^2^2~480 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=176ea3b1efe57b4ed8652f2f2ab80751307d52d7;p=gnome-shell.git workspace: Split preparation steps from zoomFromOverview Next commit will bind the workspace state adjustment to the snap adjustment in WorkspacesView, and we'll need the preparation steps but not the easing of the state adjustment. Split preparation steps from zoomFromOverview() into a new method prepareToLeaveOverview(). Part-of: --- diff --git a/js/ui/workspace.js b/js/ui/workspace.js index 8a9faf4ea..38218fc9b 100644 --- a/js/ui/workspace.js +++ b/js/ui/workspace.js @@ -1165,7 +1165,7 @@ class Workspace extends St.Widget { }); } - zoomFromOverview() { + prepareToLeaveOverview() { for (let i = 0; i < this._windows.length; i++) this._windows[i].remove_all_transitions(); @@ -1176,6 +1176,10 @@ class Workspace extends St.Widget { this.layout_manager.layout_frozen = true; this._overviewHiddenId = Main.overview.connect('hidden', this._doneLeavingOverview.bind(this)); + } + + zoomFromOverview() { + this.prepareToLeaveOverview(); if (this.metaWorkspace !== null && !this.metaWorkspace.active) return;